﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace pswmanage
{
    class Common
    {

        public static object locker = new object();

        public static string ConnString()
        {
            string conn = "Persist Security Info=True;User ID=pswmanage;Password=psw12345;Data Source=192.168.50.164;Initial Catalog=weixin";
/*
            StreamReader sr = new StreamReader("" + AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "conn.txt", Encoding.GetEncoding("GB2312"));
            string line;
            while ((line = sr.ReadLine()) != null)
            {
                conn = line.ToString();
            }
            try
            {
                byte[] c = Convert.FromBase64String(conn);
                conn = Encoding.Default.GetString(c);
            }
            catch(Exception e)
            {
                e.ToString();
            }
 */
            return conn;
        }

    }
}
